package com.zym.field_method10;

public class Student {
    //1.属性
    private String name;
    private int age;
    //2.方法
    //3.构造器 构造方法
    //典型的方法重载
    public Student(){
        System.out.println("我被调用了");
    }
    public Student(String name){
        System.out.println("我被调用了");
    }
    public Student(String nameParam,int ageParam){

    }



    public static void main(String[] args) {
        Student student = new Student();
        Student student1 = new Student("张三");
    }
}
